package com.yjd.bi.report.enums;

public enum StatisticsTypeEnum {
    
	register("register","注册"),
	login("login","登录"),
	recharge("recharge","充值"),
	invest("invest","投资");
	
	private String type;

	private String desc;

	StatisticsTypeEnum(String type,String desc){
		this.type=type;
		this.desc=desc;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getDesc() {
		return desc;
	}

	public void setDesc(String desc) {
		this.desc = desc;
	}
	
	public static StatisticsTypeEnum getStatisticsType(String type){
		for(StatisticsTypeEnum t:StatisticsTypeEnum.values()){
			if (t.getType().equals(type))
				return t;
		}
		return null;
	}
}
